#include <stdio.h>
int s(int a)
{
    return a * a;
}
int a(int n, int m)
{
    return n * m;
}
double b(int n)
{
    return (3.14 * n * n);
}
int main() {
    int q, w, e, r;
    scanf("%d%d\n%d\n%d", &q, &w, &e, &r);
    printf("%d\n%g\n%d", a(q, w), b(e), s(r));
    return 0;
}